<?php

class MW_Simplenews_Block_Adminhtml_News_Edit_Tabs extends Mage_Adminhtml_Block_Widget_Tabs
{

  public function __construct()
  {
      parent::__construct();
      $this->setId('simplenews_tabs');
      $this->setDestElementId('edit_form');
      $this->setTitle(Mage::helper('simplenews')->__('Item Information'));
  }

  protected function _beforeToHtml()
  { 
      $this->addTab('form_section', array(
          'label'     => Mage::helper('simplenews')->__('Basic Information'),
          'title'     => Mage::helper('simplenews')->__('Basic Information'),
          'content'   => $this->getLayout()->createBlock('simplenews/adminhtml_news_edit_tab_form')->toHtml(),
      ));

      $this->addTab('meta_section', array(
          'label'     => Mage::helper('simplenews')->__('Meta Information'),
          'title'     => Mage::helper('simplenews')->__('Meta Information'),
          'content'   => $this->getLayout()->createBlock('simplenews/adminhtml_news_edit_tab_meta')->toHtml(),
      ));

      return parent::_beforeToHtml();
  }
}